﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KPIS.GERP.GHRMS.APP.Classes;
using KPIS.GERP.GHRMS.APP.TimeAttentsService;

namespace KPIS.GERP.GHRMS.APP.App_UI.Forms
{
    public partial class PS_TimeAttendantsAutoAssign : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAutoAdd_Click(object sender, EventArgs e)
        {
            int month = RadMonthYearPicker1.FocusedDate.Month;
            int year = RadMonthYearPicker1.FocusedDate.Year;
            TimeAttentsService.TimeAttentsServiceClient taService =new TimeAttentsServiceClient();
            taService.AutoAssignTimeAttendanceDaily(year,month, new SsMng().EmpSeqI);
            new Main().MessageAlert(Page, "สำเร็จ");
        }
    }
}